package com.bzxgc.sgwer.dao.user;

import com.bzxgc.sgwer.entity.user.UserRole;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface UserRoleMapper {

    /**
     * 批量添加
     */
    void addUserRoleBatch(List<UserRole> userRoleList);

    /**
     * 根据用户id删除
     */
    void deleteUserRoleByUserIds(Long[] userIds);

    /**
     * 根据用户id查询
     *
     * @param userId
     * @return
     */
    List<UserRole> getUserRoleByUserId(@Param("userId") Long userId);

}
